import { BasicColumn } from "@/components/Table";
import { formatToDateTime } from '@/utils/dateUtil'

export const tableColumns: BasicColumn[] = [
  {
    title: 'ID',
    dataIndex: 'id',
    width: 80,
    align: 'center'
  },
  {
    title: '销账时间',
    dataIndex: 'verifyDate',
    align: 'center',
    customRender: ({ record }) => {
      return formatToDateTime(record.verifyDate)
    }
  },
  {
    title: '账单价格',
    dataIndex: 'price',
    align: 'center'
  }
] 